
#import "@preview/numbly:0.1.0": numbly
#import "@preview/cetz:0.3.0": canvas, draw
#import "typ/templates/settings.typ"

// 设置标题，但不可见，仅用于设置 pdf 元数据.
#set document(
  title:"", 
  author: "zhcosin", 
  keywords: ("复分析","复数","分析"),
  date: datetime(year: 2024, month: 10, day: 12)
)

#set heading(numbering: numbly(
  "第{1}章",
  "{1}.{2}",
  "{1}.{2}.{3}",
))

#set text(font: "Source Han Serif SC", lang: "zh")

#v(150pt)
#align(center, text(font: "KaiTi", size: 20pt)[
  *复分析可视化方法学习笔记*
])
#align(center, text(15pt)[
  *by zhcosin*
])
#v(350pt)
#align(center, text(15pt)[
  *2024-10*
])
#pagebreak()

#set par(first-line-indent: 2em)

#let fakepar = style(styles => {
  let b = par[#box()]
  let t = measure(b + b, styles);

  b
  v(-t.height)
})

#show heading: it => {
  it
  fakepar
}

#show heading.where(
  level: 1
): it => block(width: 100%)[
  #set align(center)
  #set text(font: "SimHei", 17pt)
  #v(20pt)
  #(it)
  #v(20pt)
]

#show heading.where(
  level: 2
): it => block(width: 100%)[
  #set align(center)
  #set text(font: "Alef", 15pt)
  #v(10pt)
  #(it)
  #v(10pt)
]

#outline(title: "目录", indent: 2em)
#pagebreak()

#set page(numbering: "1")
#counter(page).update(1)

#include "charpter1/charpter1.typ"